import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    breadCrumbItem:["Home","主要管理","订单管理"],
    leftMenuCheckd:"order"
  },
  mutations: {
    //面包屑同步
    changeBCItem(state,title){
        state.breadCrumbItem[2] = title;
    },
    //左侧选中状态
    changeLMCheckd(state,id){
        state.leftMenuCheckd = id;
    }
  },
  actions: {
    //
  }
})